
package com.sasis.service.impl;

import java.util.List;

import com.sasis.service.impl.BaseManager;
import com.sasis.model.HighRequest;
import com.sasis.dao.HighRequestDao;
import com.sasis.service.HighRequestManager;
import com.sasis.util.PageList;
import com.sasis.util.PageRequest;

public class HighRequestManagerImpl extends BaseManager implements HighRequestManager {
    private HighRequestDao dao;

    /**
     * Set the Dao for communication with the data layer.
     * @param dao
     */
    public void setHighRequestDao(HighRequestDao dao) {
        this.dao = dao;
    }

    /**
     * @see com.sasis.service.HighRequestManager#getHighRequests(com.sasis.model.HighRequest)
     */
    public List getHighRequests(final HighRequest highRequest) {
        return dao.getHighRequests(highRequest);
    }
    
    public List selectHighRequests(HighRequest highRequest){
    	return dao.selectHighRequests(highRequest);
    }
    /**
     * @see com.sasis.service.HighRequestManager#getHighRequest(String id)
     */
    public HighRequest getHighRequest(final String id) {
        return dao.getHighRequest(new Integer(id));
    }

    /**
     * @see com.sasis.service.HighRequestManager#saveHighRequest(HighRequest highRequest)
     */
    public void saveHighRequest(HighRequest highRequest) {
        dao.saveHighRequest(highRequest);
    }
    public List getHighRquestByTaskId(String taskId) {
    	return dao.getHighRquestByTaskId(taskId);
    }
    public int saveHighRequestStatus(String requestId){
   	 return dao.saveHighRequestStatus(requestId);
   }
    /**
     * @see com.sasis.service.HighRequestManager#removeHighRequest(String id)
     */
    public void removeHighRequest(final String id) {
        dao.removeHighRequest(new Integer(id));
    }
    
	public PageList queryForPageList(String listStatementId,  
    		Object parameterObject, PageRequest pageRequest){
	return dao.queryForPageList(listStatementId,   parameterObject, pageRequest);
}
    
    
    
    
    
    
    
}
